package com.example.rocketmq.basic;

import org.apache.rocketmq.spring.annotation.ConsumeMode;
import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQReplyListener;
import org.springframework.stereotype.Component;


@Component
@RocketMQMessageListener(consumerGroup = "RetryConsumerGroup", topic = "RetryTestTopic",
        consumeMode = ConsumeMode.CONCURRENTLY)
public class ReplyListener implements RocketMQReplyListener {

    @Override
    public Object onMessage(Object message) {
        System.out.println("Received Message : "+message);
        return message;
    }
}
